//
//  CollectionCell.m
//  MyBlog
//
//  Created by NCS on 16/12/9.
//  Copyright © 2016年 YSL. All rights reserved.
//

#import "CollectionCell.h"

@implementation YSLIndexedCollectionView

@end

@implementation CollectionCell

- (void)setCellImageWithName:(NSString *)imageName {
    self.collectionImage.image = [UIImage imageNamed:imageName];
}

- (void)setCellImageWithURL:(NSURL *)url {
    
    // Image fill mode
    self.collectionImage.contentMode = UIViewContentModeScaleAspectFill;
    self.clipsToBounds = YES;
    
    [self.collectionImage sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"default"] options:SDWebImageRetryFailed];
    
//    [self.collectionImage sd_setImageWithURL:url];
}

@end
